import Vue from 'vue'
import VueRouter from 'vue-router'
import AddStudent from '../views/AddStudent.vue'
import StudentView from '../views/StudentView.vue'
import Register from '../views/Register.vue'
import Index from '../views/Index.vue'
import Teacher from '../views/Teacher.vue'
import AddTeacher from '../views/AddTeacher.vue'
import wxLogin from '../views/wxLogin.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'index',
    component: Index
  
  },
  {
    path: '/register',
    name: 'register',
    component: Register
  },
  {
    path: '/studentView',
    name: 'StudentView',
    component: StudentView
  },
  {
    path: '/AddStudent',
    name: 'AddStudent',
    component: AddStudent
  },
  {
    path: '/teacher',
    name: 'Teacher',
    component: Teacher
  },
  {
    path: '/addTeacher',
    name: 'AddTeacher',
    component: AddTeacher
  },
  {
    path: '/wxLogin',
    name: 'wxLogin',
    component: wxLogin
  }
]
const router = new VueRouter({
  hash: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
